# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-httpcap
_pkgname=httpcap
pkgver=0.7.9
pkgrel=7
pkgdesc='Capture and parse http traffics with python.'
arch=('any')
url='https://pypi.org/project/httpcap/#files'
license=('BSD')
depends=('python' 'python-six')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('98e1738d6f2a608aa96d8e17225eb78e6557396a96ab4f89be3c9daea89f1f7bcaa0904921242617bcd9b2fbca6e6365e422c7131aadad1600f287ef96bc0d04')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

